package com.zhuss.order.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.order.order.SearchPrefundBo;
import com.zhuss.bean.vo.order.order.DetailPrefundVo;
import com.zhuss.bean.vo.order.order.ListPrefundVo;
import com.zhuss.order.db.dao.gen.PrefundMapper;
import com.zhuss.order.db.entity.Prefund;

/**
 * @description: 退款返回记录数据库Dao
 * @author: zhushanshuo
 * @create: Fri Jan 15 22:17:59 CST 2021
 **/

@Mapper
public interface PrefundDao extends PrefundMapper {
	
	void create(Prefund record);
	
	void delete(Prefund record);
	
	void refresh(@Param ("orderRefundId") Long orderRefundId, @Param ("wxRefundId") String wxRefundId);
	
	void refreshStatus(@Param ("orderRefundId") Long orderRefundId, @Param ("status") Integer status, @Param("modifier") String modifier, @Param("modifierId") Long modifierId, @Param("modifyTime") Date modifyTime);

	List<Prefund> listAll();

	List<Prefund> listById(@Param("prefundIdList") List<Long> prefundIdList);
	
	List<Prefund> listByName(@Param("name") String name);
	
	List<ListPrefundVo> list(SearchPrefundBo bo);
	
	Integer countList(SearchPrefundBo bo);

	DetailPrefundVo detail(@Param("prefundId") Long prefundId);

}
